package com.guang.syncronized;

import org.openjdk.jol.info.ClassLayout;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description 证明无锁不可偏向有hashcode
 * @Author liguang
 * @Date 2022/10/19/10:36
 */
public class SyncronziedDemoThree {
    private final static Logger logger = LoggerFactory.getLogger(SyncronziedDemoThree.class);
    static Object lock  = new Object();
    public static void main(String[] args) {
        logger.info("对应的hashcode是：{}",Integer.toHexString(lock.hashCode()));
        logger.info(ClassLayout.parseInstance(lock).toPrintable());
    }
}
